package work.timejay.service.impl;

import cn.hutool.core.bean.BeanUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import work.timejay.common.SuperServiceImpl;
import work.timejay.dto.UserEditDTO;
import work.timejay.dto.UserRegisterDTO;
import work.timejay.entity.User;

import org.springframework.stereotype.Service;
import work.timejay.enums.UserEnums;
import work.timejay.mapper.UserMapper;
import work.timejay.service.CommonUserService;
import work.timejay.utils.LoginHelper;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author 王文杰
 * @since 2023-11-17
 */
@Service
public class CommonUserServiceImpl extends SuperServiceImpl<UserMapper, User> implements CommonUserService {


    @Override
    public User findUserInfo(String phone, String pwd) {
        return lambdaQuery()
                .eq(User::getPhone, phone)
                .eq(User::getPassword, pwd)
                .one();
    }

}
